package com.rolerealm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rolerealm.domain.entity.CharacterPersonalityEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色性格特征数据访问接口
 * 
 * @author RoleRealm Team
 * @version 1.0.0
 */
@Mapper
public interface CharacterPersonalityMapper extends BaseMapper<CharacterPersonalityEntity> {

    /**
     * 根据角色ID查询性格特征
     * 
     * @param characterId 角色ID
     * @return 性格特征
     */
    CharacterPersonalityEntity selectByCharacterId(@Param("characterId") Long characterId);

    /**
     * 根据角色ID列表批量查询性格特征
     * 
     * @param characterIds 角色ID列表
     * @return 性格特征列表
     */
    List<CharacterPersonalityEntity> selectByCharacterIds(@Param("characterIds") List<Long> characterIds);

    /**
     * 根据角色ID删除性格特征
     * 
     * @param characterId 角色ID
     * @return 删除数量
     */
    int deleteByCharacterId(@Param("characterId") Long characterId);
}
